#定义一个学生的类并且进行实例化
class Student:
    def __init__(self, name, age,student_id):
        self.name = name
        self.age = age
        self.student_id = student_id
        self.grade={"语文":0,"数学":0,"英语":0}   #用字典来表示一个学生的各科成绩

    #用来修改各科的成绩
    def imp_grade(self,grade,core):
        if grade in self.grade:
            self.grade[grade]=core
    def Print(self):
        for k,v in self.grade.items():
            print(k,v)

#进行实例化对象
s1 = Student("wwp",18,"00016")
#进行语文的修改
s1.imp_grade("语文",120)
s1.Print()